{% extends "master.html" %}
{% block subtitle %} - 店铺管理 - 供应商详情{% endblock %}

{% block main %}
<div class="container">
    <div class="row">
        <ol class="breadcrumb">
          <li><a href="{{url_for('bpMas.view')}}">基础信息</a></li>
          <li><a href="{{url_for('bpSpl.view')}}">供应商管理</a></li>
          <li class="active">供应商详情</li>
        </ol>
    </div>
    <div class="row">
        <ul class="nav nav-tabs">
          <li class="active"><a href="#">供应商详情</a></li>
          <li><a href="{{url_for('.view',action='viewLog',id=obj.id)}}">日志记录</a></li>
        </ul>
    </div>
    <div class="row">
        <div class="btn-toolbar pull-right">
            {% if obj.editable() %}
                <div class="btn-group"><a class="btn btn-default" href="{{url_for('.view',action='update',id=obj.id)}}">{{BTN_UPDATE}}</a></div>
            {% endif %}
            {% if obj.deletable() %}
            <div class="btn-group"><a class="btn btn-danger" href="{{url_for('.view',action='delete',id=obj.id)}}">{{BTN_DELETE}}</a></div>
            {% endif %}
        </div>
    </div>
    <div class="row">
        <fieldset>
            <legend>供应商详情</legend>
            <div class="col-md-4">
                <h4>系统编号</h4>
                <p>{{obj.no}}</p>
                <h4>供应商名称</h4>
                <p>{{obj.name|f}}&nbsp;</p>
                <h4>地址</h4>
                <p>{{obj.province|f}}{{obj.city|f}}{{obj.address|f}}&nbsp;</p>
            </div>      
            <div class="col-md-4">
                <h4>联系人</h4>
                <p>{{obj.att|f}}&nbsp;</p>
                <h4>联系电话</h4>
                <p>{{obj.tel|f}}&nbsp;</p>
                <h4>手机</h4>
                <p>{{obj.mobile|f}}&nbsp;</p>
            </div>
            <div class="col-md-4">
                <h4>备注</h4>
                <p>{{obj.remark|f}}&nbsp;</p>
                <h4>附件</h4>
                {{mymacros.render_preview_all_attachment(obj.attachment)}}
            </div>
        </fieldset>
        {{mymacros.render_system_info(obj)}}
    </div>
</div>
{% endblock %}